home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
demo
/
dynahlp.zip
/
DYNATEXT.HLP
/
dynatext.p4w
next >
Wrap
Text File
|
1995-03-07
|
2KB
|
61 lines
var
textVar : string = 'Initial Value';
videoFile : string = 'hact7.avi';
bitmapFile : string = 'graylogo.bmp';
paletteBMP : string = 'graylogo.bmp';
count : integer = 1;
bitmapCount : byte = 1;
maxCount : integer = 4;
fld2 : integer = 0;
combinedVideo : string = 'fruit.avi';
combinedBitmap : string = '126.bmp';
colors : longint;
palette : longint;
endVar
procedure updateDisplay
inc(count);
if (count > maxCount)
count := 1;
endif
switch count of
case 1 : textVar := 'First Value';
endCase
case 2 : textVar := '2nd Value';
endCase
case 3 : textVar := 'The 3rd Value';
endCase
case 4 : textVar := 'The Last Value';
endCase
endSwitch
refreshWindow;
endProc
procedure updateBitmap
bitmapCount := 1 - bitmapCount;
if (bitmapCount = 0)
bitmapFile := 'hactlogo.bmp'
else
bitmapFile := 'graylogo.bmp'
endif
refreshWindow;
endProc
procedure animateBitmap;
var
i : integer;
endVar
palette := getBMPPalette("paletteBMP");
colors := getBMPNumOfColors("paletteBMP");
markAllPaletteEntries(palette);
{ for i := 1 to colors }
cyclePalette(palette);
animatePalette("paletteBMP", palette);
{ endFor }
releasePalette(palette);
endProc